// 表单模式枚举
export const FORM_MODE = {
  ADD: 'add',
  EDIT: 'update',
};

// 默认数据库连接
export const DEFAULT_CONNECT = 'mysql';

// 表单验证错误类型
export const VALIDATION_ERROR_NAME = 'ValidationError';

// 默认表单数据
export const DEFAULT_FORM_DATA = {
  id: null,
  pid: null,
  type: 1,
  name: '',
  key: '',
  // icon: 'menu',
  controller: '',
  //route_name: '',
  //route_path: '',
  //component: '',
  //template: '',
  //visible: 1,
  //keep_alive: 1,
  //always_show: 1,
  gen_code: 1,
  gen_table: 1,
  connect: DEFAULT_CONNECT,
  table_name: '',
  primary_key: 'id',
  //params: '',
  //redirect: '',
  //iframe_url: '',
  //extlink: '',
  config: {},
  translations: [],
  remark: '',
  status: 1,
  sort: null,
};
